package cn.com.nes.mybatis.agent.ope.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 设备续费信息
 * </p>
 *
 * @author nes
 * @since 2023-03-31
 */
@TableName("renewal_info")
public class RenewalInfo extends Model<RenewalInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 设备厂商ID
     */
    @TableField("manufacture_id")
    private String manufactureId;
    /**
     * 订单编号
     */
    @TableField("order_number")
    private String orderNumber;
    /**
     * 无线id
     */
    @TableField("wx_id")
    private String wxId;
    /**
     * 续约时间
     */
    @TableField("renewal_date")
    private Date renewalDate;
    /**
     * 过期时间
     */
    @TableField("expiration_date")
    private Date expirationDate;
    /**
     * 金额
     */
    private BigDecimal price;
    /**
     * 数据来源
     */
    private String sjly;
    /**
     * 创建人
     */
    @TableField("create_user")
    private String createUser;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改人
     */
    @TableField("update_user")
    private String updateUser;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 删除标识：0-未删除，1-已删除
     */
    private Integer deleted;
    /**
     * 导入批次号
     */
    @TableField("import_batch")
    private Long importBatch;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getManufactureId() {
        return manufactureId;
    }

    public void setManufactureId(String manufactureId) {
        this.manufactureId = manufactureId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getWxId() {
        return wxId;
    }

    public void setWxId(String wxId) {
        this.wxId = wxId;
    }

    public Date getRenewalDate() {
        return renewalDate;
    }

    public void setRenewalDate(Date renewalDate) {
        this.renewalDate = renewalDate;
    }

    public Date getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Date expirationDate) {
        this.expirationDate = expirationDate;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getSjly() {
        return sjly;
    }

    public void setSjly(String sjly) {
        this.sjly = sjly;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Long getImportBatch() {
        return importBatch;
    }

    public void setImportBatch(Long importBatch) {
        this.importBatch = importBatch;
    }

    public static final String ID = "id";

    public static final String MANUFACTURE_ID = "manufacture_id";

    public static final String ORDER_NUMBER = "order_number";

    public static final String WX_ID = "wx_id";

    public static final String RENEWAL_DATE = "renewal_date";

    public static final String EXPIRATION_DATE = "expiration_date";

    public static final String PRICE = "price";

    public static final String SJLY = "sjly";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

    public static final String DELETED = "deleted";

    public static final String IMPORT_BATCH = "import_batch";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "RenewalInfo{" +
        ", id=" + id +
        ", manufactureId=" + manufactureId +
        ", orderNumber=" + orderNumber +
        ", wxId=" + wxId +
        ", renewalDate=" + renewalDate +
        ", expirationDate=" + expirationDate +
        ", price=" + price +
        ", sjly=" + sjly +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", deleted=" + deleted +
        ", importBatch=" + importBatch +
        "}";
    }
}
